<template>
	<view class="me">
		<view class="content">
			<view class="content-bottom">
				<view class="content-bottom-span" v-for="(item, index) in contentLabel.content" :key="index">
					<text :class="contentLabel.label[index] == contentLabel.labels ? 'color' : ''" @click="clickLabel(index)">{{item}}</text>
					<view :class="contentLabel.label[index] == contentLabel.labels ? 'content-bottom-spans' : ''"></view>
				</view>
			</view>
		</view>
		<me-mainpage></me-mainpage>
	</view>
</template>

<script>
import MeMainpage from './components/Mainpage.vue'
export default{
	name: 'Me',
	components:{
		MeMainpage
	},
	data() {
		return {
			contentLabel: {
				content: ["贴子","主页","关注","粉丝","相册","视频"],
				label: [0,1,2,3,4,5],
				labels: 1
			}
		}
	},
	mounted() {
		
	},
	methods: {
		clickLabel(e) {
			this.contentLabel.labels = e;
		}
	}
}
</script>

<style>
	.content{
		position: fixed;
		width: 100%;
		top: 125px;
		background-color: #fff;
		z-index: 99;
		height: 40px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		margin-bottom: 5px;
	}
	.content-bottom{
		display: flex;
	}
	.content-bottom-span{
		margin-top: 4px;
		margin-left: 20px;
		color: #9C9C9C;
		font-size: 17px;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-bottom: 5px;
	}
	.content-bottom-span > text {
		display: flex;
		align-items: flex-end;
		height: 30px;
	}
	.content-bottom-spans{
		width: 15px;
		height: 4px;
		border-radius: 30px;
		background-color: #FE6440;
		margin-bottom: 0.1px;
	}
	.color{
		color: #FE6440;
		font-weight: 550;
		font-size: 19px;
	}
</style>
